// Copyright (c) Microsoft Corporation.  All rights reserved.

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace PfRep.Common
{
    public static class Diagnostics
    {
        private static EventLog eventLog = new EventLog("Application", ".", "PfRep");

        /// <summary>
        /// Writes a trace message
        /// </summary>
        /// <param name="message"></param>
        public static void Trace(string method, string message)
        {
#if DEBUG
            Trace(DateTime.Now.Ticks + " " + method + ": " + message);
#endif
        }

        /// <summary>
        /// Writes a trace message
        /// </summary>
        /// <param name="message"></param>
        public static void Trace(string message)
        {
#if DEBUG
            //Debug.WriteLine(message);
            //eventLog.WriteEntry(message, EventLogEntryType.Information);
#endif
        }
    }
}
